modify net.cpp