more updates for code examples