qcats = {0:2291,1:2731,2:3959};