clustering scripts