fixing code examples