sum_of_weights