from r5 to r7