updated weights.