fix example that had outdated code