added checks and grader.js