update the data model