switch key and value in object