bug in code for finding teacher