fix swap syntax