clean up Main.cpp