fix rank range