add coeff code