some snippets i want to keep