updated snip function to use new paths