format, and delete some unuse function