fixing sample_run