some cluster based analysis in code added