cleaning up the map