fixed rowquality algo