delete some useless code in main.cpp