update datafu sampling simulation code