updating the map