added methods for registration.