remove global variable script