map made a global variable