combined all snippets