change rank for score
step for more general MatchingClass