removing unecessary lines