added DFS methods