fixed bug in processing part of data file