fixed bug with t-test