handle enum value checks