added and updated snippets