remove unneeded lines