added context in mapreduce interface