move input file reading to sequence file