finally got enums to work