qcats = {0:1861,1:3347,2:3907,3:4752};