qcats = {0:2292,1:2484,2:4770,3:8621};