correct global var