updated the model definition