algos, snippets