updated mapreduce signature. ref: issue #5