trying to convert rating to string but bad data type