added reducer.