rearrange submodules