- implemented swap case