added 2nd mapping/reduce