loc var rearrange