export reduce, fixed a bug