adding global variables to aid in refactoring