was seting map object to internal varaible instead of global variable