edit register method