fix addcoef part