tile refactoring