merge the results in the reducer