refactor code
reset rating values and calculation