apply swaps