rate algorithm modification