fixed grade filter to allow for empty array