updated rating computation