adding skeleton of clustering routine