qcats = {0:665,1:1839,2:2679};