starting calculation of triplets