modified rating controller and model