adding lines to the bfs - need labels