my logistic function OK