delete some code and format code