remove some unnecessary lines.