add if-define for h file; move the variables to the cpp, then set the variable extern in h file