correct range of grade
removes files not used