modify the register from r7 to r8