fixed reduce method by creating new CustomWritable