cut bfs