removed global variable from header files