removed global var