update DataModel logic