finished register method