add automatic clustering