added triples()