delete some unnecessary code