improving snippets