make it so TILE_INDEX_TYPE has to be an int