snippets

some code snippets