deletion of unncessary lines