result ranking filtering by class rank was not working