update the register command