minor fix

making directory “dat” and minor bug fix