qcats = {0:1873,1:5110,2:7803};