unnecessary lines are deleted.