formalize the modules