remove global variables