ranker

added ranker func.