updates model