minor lisibility modif of the code of sample_io