snippets of my code