use generic method for Enum value creation