Use a local variable to update rss and swap.