working on instant based logistic regression