remove unneccassary lines