qcats = {0:2382,1:5787,2:6173,3:6465,4:6919};