trying to find best coefficients