adding to network.c