rearrange optlist