added rating procedure