all the grading stuff