QUAD: changed type to enum class, containing S and Q so far