register() method