delete unneeded lines