Enter dfs and iter loops