qcats = {0:2455,1:2967,2:9845};