adding struct for network