adding output file in the DFS