update rank