modified checks and grader, needs debugging