adding function to modify existing subnets