#20 change in sim_sample