rejiggered logreg2