remove some unnecessary lines