added triples and quadruples