clean up rating method