added swap-in rate parameter