qcats = {0:594,1:2147};