refactor GLOBAL variable