emit swapThunk method