modified grader and check json