main method is moved to Clustering