added relationship to ratings