refactoring collections broken components snippets