update doc example with latest changes