qcats = {0:2189,1:4671,2:8742};