qcats = {0:492,1:1769,2:2097};