coding the new map-reduce tagmodel