fixed issue with grading