adding fscanf simplification