added reducer