setting rank