added swap script