added beginnings of clustering