refactored to include combine_top_clusters function