removing the list elements