get ratings with params and do averages logic