added moved map to global scope