some improvements for modules subjects and teacher_subjects