var name correction in main.cpp