make Rating global