refactor update references