implemented removeList functionality