working on irGrade() bugs