added swap case solution