qcats = {0:431,1:1838,2:2142,3:9180};