added check_sample_bias