fix isSubnets method