first steps for ranking