qcats = {0:665,1:1803,2:2553,3:7902};