fix reduce argument order