code snippets for small things