bugs in regression equation fixed