updating data model