clearup unnecessary lines.