renamed TS to tileSize