changing nic_list iteration to pointer