delete unnecessary lines