replaced xchg