triplet sum minor change