upgrade for model.