added sampling on cluster