add student check in function