set from gvars to pvars