changed enum to enum class