started findClusters function