updated snippets program