improvemet of the parser for the input file