added array for numsorts