some code-snippets I often use