non debbuged version of a dfs