some style cleanup of ghost bfs