_num_samples is used