coe_sum improved

coe_sum improved