bfs for presentation