added confidence interval support