rank mode finally fixed