change rate adaptation algorithm
allow to switch more than one level at a time