update GenerateDocReducer