built-in logistic function is faster & safer