fix warning and formatting in metric_clustering
fix unused warning
make sure to use parameter
suppress warning