implement rank && relationship tools