retrieve Student and Teacher seperately done