clean up code snippets