refactored few variables in main.cpp