added complete rank plotting feature