cleaning up some code examples