qcats = {0:1871,1:2159,2:5031,3:6506};