adding network code