subnetwork now correctly generated