fix example deprecations