made changes to rating handler