updates data model