grade first domain first switch working properly