remap types. logreg compiles