Apply the same to the register method