add snippets in comments