added clustering feature