add snippets to index