adding ranks