group reduce plan