fixing datafile generator