fixed SampleGenerator