finished updating the distribution of weights