fix example to match API change