update code about net work