new clustering scripts