slight improvments
dfs working