using r1 instead of r2