further refinement of Kmeans Analyzer