qcats = {0:2437,1:2455,2:2874,3:9144};