update category functions