qcats = {0:1140,1:2159,2:4629,3:8269,4:8271};