fix reducer output