add readRank Func