added to generateSwaps