refine the clustering based EOCC routine