added exam num function