forgot to close the input file