refactoring
array: snippets