qcats = {0:470,1:2455,2:4913,3:5646,4:9465};