Wrote reduceop