add function snip