refactor add brick