move module_function up top