change the register order