i'm not sure I understand the value of making this variable global when it's only used in a local context looking up in the map?