qcats = {0:464,1:1806,2:3187};