add support of triples