hopefully the last fix to friends_bfs