qcats = {0:2520,1:3037,2:3160,3:4959,4:9171};