add sum_weights