change rating algorithm