-added function for rating prediction