qcats = {0:2560,1:2677,2:3186};