implementing rating