gateway: reverse semantics of two variables