refactor update message