adding grade extraction