automatically set reducers