turn enum AccidentalType into enum class