remove unnecessary lines