edit the output of reduce