removing unneeded lines