fix unnecessary lines