map variable changed to a global variable