fixes to ttest