qcats = {0:431,1:2917,2:3178};