qcats = {0:492,1:1868,2:2613};