fixed a few assumptions with the confidence interval