minor code sample tweaks