fopen_sample async.whilst reduce indent