refactor rating modifier