refactoring global variable names