fixed
Merge pull request #1 from revington/better-map-reduce

better map reduce