grading the curves