remove unnecessary lines.