add rank and table