qcats = {0:2394,1:2547,2:2603};