remove global variable