qcats = {0:2439,1:2813,2:4755,3:5073,4:8503};