qcats = {0:2147,1:2966,2:3949};