removed debug log statements in swapContent()