grade refresh, helper function