add ttest to calculation