update category to array