fix code snippets