delete the swap method