properly set rating from states