remove some unnecessary code