refactor ClusterDetect