fixed BFS