updated check code for student response