updating code examples