removed call to logistic by conditional operator