Change to table2centroids