updates model schema