grading the states