patterning of the input file
improvement in reading the input files