maybe more usable snip function
maybe more usable snip function