rearrange relmap attribute