added close inputFile