update example for current api