why does the rest of the code need changing here? we basically just needed to pass the map no?