inputfile + main modified