fix reduce without optional arg