removing unneeded list items