qcats = {0:452,1:2965,2:3291};