fixed example to API change