finish the register.