cleaned up the registration