update register method