rename r1 to r2