new version of the map generation