modified how program opens input file