reduce global variable