tweaks to code snippets