moved get_samples to basedist