changed the reducer