Change rating to double