fixed the grade stuff