added adaptive sampling
added adaptive sampling
added adaptive sampling