added average rating calculation