added code for rating n listing type