refactor main.cpp