fixed it to run on the cluster (issue with rand function)