qcats = {0:665,1:1798,2:2382,3:4568,4:6237};