exchange lhs/rhs variable names