update the model and script