better var conditions for ratingflag