fixed error where t-dist confidence interval used n instead of n-1