added constant for register error