Refined the sampling procedure