added swap on to script