deprecated reduceExpression, replaced by loopExpression