improved clustering outcomes and plot generation