fixed source code examples