fixed modules to after change to define function