extended the refactoring of the block code to tiles for consistency