reverted main.cpp