add register method