delete unecessary lines