Removing unnessecary lines