new code for clustering
code for just finding the peaks