Transposition logic