pig snippets