switching to student and teacher factories