qcats = {0:1142,1:3261,2:8586};