corrected n_samples