added cdf_log to bernoulli distr