using input file