Changing parameters to centroids routine(1)