refined student/teacher numbering