changes to log reg tutorial