fix problems with student and teacher