optimizing coef