added grades query