reduce: fix output