updating data model on doc