reduction for memory