dogin the function of grade controllers