edited version of checks and grader