adding swapmap