make sure this is BFS