update structure of variables.