refactor coeff extraction for regression