updates data model with functions