some of my own snippets