swap the variables