some changes in snippets