update category data structure