some code snippets experiments