qcats = {0:1871,1:1872,2:2159,3:4072,4:4629,5:6636,6:7234};