added check centroids as option