convert unnamed enum into enum class Prefer