update  code examples