code for network