added swap lines mapping