qcats = {0:431,1:1766,2:6463};