delete some unnecessary codes