for flat file