update the map