random snippets learned from online