adding bfs