delete extra line of code in dfs