better tile-rectangle creation