handle rank changes