updateModel should take rootModel instead of model