fixed bug in clustering. New log added for clustering.