updated to 99% confidence interval
cleaned up