refactor user_rating on advertisements