updating the map and files