fixed the subset 1 variables bug. need to reconvert to function network again