runs the function to create the module definition