Change the mapping, take the average value and put it in the map