modifying shotgun to run logreg, but running into problems