How to save the map