qcats = {0:2963,1:7264,2:8586,3:8589};