add utils to combine bfs generated