add unique triplets