logistic - fast version