some more transformations to speed up binomial_conf_interval