added partial logistic function;