removed the global variable