reduce in backend api