rearragement of restraints into submodules