working more BFS stuff