update network.