removing recursion from AddReduce