main.cpp changed