fixed sample_file input