make rating work in real time