hybrid bfs updated