update example to work with latest syntax