switch of variables