applied magic to submodules