fixing some code examples