added update to model