detect triples,quads, and quints