first part of log reg seems finished