delete useless code in main.cpp