commit the map