small snippets for small jobs