turn enum GroupType into enum class