add swap to datamap