try catch in regsiter
register change