qcats = {0:466,1:1859,2:2841};