unnecessary lines are removed