added serializeMapReduce