cluster replacement strategy is now closer to the R version