correct incorrect swapout to variable