added generation of the map