changed boundVar type to boundVar<vector<Node>>