qcats = {0:2790,1:3785,2:4099,3:6702};