set up map reduce