modif to cluster function to account for instrl data set