modified main.cpp on linux-build.