updated mapreduce to correct off by one bug ... again