removed a global var