update code refactor