change number of loops for each Tx to unsigned long long instead of int