handle empty input file