grading script fix