updated bfs threshold
updated bfs threshold