simplified
enum class instead of enum