working on input file reading structure