delete unnecessary lines from printer