qcats = {0:2586,1:2865,2:3949,3:6837};