rename func to reduce
silence warnings
Merge branch 'rewrite_reduce' into rewrite