fixed examples after API change