working on merging snippets together