swap location attributes