Update bnet.cpp