added swap-quote function