fixed reading file with sat sample