remove an element in a list