reorganized snippets