fixed some bugs with autocompletion, but array of students still not being returned