global var was strange