add uniform sample in sampling intermediate path