intermediate (reduce command added)