try to fix complier problems not finding enum