qcats = {0:1791,1:2115,2:3422,3:5647};