error in reading file names