switching for grading