removed dead code from logreg