parsing input file