made swapping test