finalized triple stats script