change to new macro LOCAL_TILE and ALL_TILES