rename some var in main.cpp