updated Rating Implementation