updated some code examples