modifications to code examples