inlined logistic