[refactering]create rank_hit? function