restructuring kclustering