had to change how to get the input file