remove the global variable