change weight in the model