no more nil errors in registration