reduce R