working on rating prediction logic