tested the logistic method