save data for selected pair of variables