remove un-needed lines