update model is finally working