hist_weights_W wip