EN: make a function for confidence intervals