building the map