how to remove element in list