added logistic model