setting up check for grades