changed network.c