qcats = {0:2490,1:4596,2:6943};