simplifying snippets