added rating funct
added rating funct