return weight_array