remove pass by referecne & when generating the module list for a course when deleting.