fixed trig bug with repeat triples in various graphs