Update net.cpp