add category histogram support