added ability to evaluate triples