fixed code examples