improve speed by breaking cluster before adding elements