bfs parsing code