register method