reduce global var