updates for the weights