updating triples