adding reducer