added average rating feature