the for loop should run over path, not dataPath
the for loop should run over path, not dataPath