some changes of the snippets