simplify get_coeff