cl,ustering part added