Refined variables names in bfs