update the distributions