set ptr to 0 for noteacher no classroom query