add memory for reduce