update model refactor