removed BFS class